const http = uni.$u.http;
/* 查看购买了多少单 */
export const init_orderList = async () => {
  const res = await http.get("/frontend/mall/order/frontendOrderListNumber");
  return res?.data || {};
};

/* 我的团员-积分统计 */
export const teamIntegralStatistics = async () => {
  const res = await http.get("/frontend/withdrawalLog/myTeamIntegralStatistics");
  return res?.data || {};
};


/* 我的团员-积分明细 */
export const teamIntegralList = async (data) => {
  const res = await http.post("/frontend/withdrawalLog/queryWithdrawalLogList", data);
  return res?.data || {};
};

/* 我的团员-团员列表 */
export const teamMembersList = async (data) => {
  const res = await http.post("/frontend/withdrawalLog/myPromotionList", data);
  return res?.data || {};
};

/* 我的团员-提现 */
export const withdraw = async (type) => {
  const res = await http.get(`/frontend/withdrawalLog/withdraw?type=${type}`);
  return res?.data || {};
};